﻿using DomainCommons.Models;

namespace ApplicationModels.A03.Photographs
{
    public class PhotographAM:BaseEntity<Guid>
    {
        /// <summary>
        /// 作者
        /// </summary>
        public string? AppUserNickName { get; set; }
        public string? AppUserId { get; set; }
        public string? AppUserAvatar { get; set; }

        /// <summary>
        /// 类别
        /// </summary>
        public int PhotographTypeId { get; set; }
        public string? PhotographTypeName { get; set; }
        public bool IsLiked { get; set; }

        public bool IsStar { get; set; }


        /// <summary>
        /// 作品详情的所有作品
        /// </summary>
        public string? FilesIds { get; set; }
        /// <summary>
        /// 作品首页展示图
        /// </summary>
        public string? FileShowId { get; set; }
        /// <summary>
        /// 标签
        /// </summary>
        public string? Tags { get; set; }
        /// <summary>
        /// 作品统计
        /// </summary>
        public int LikeCount { get; set; }
        public int WatchCount { get; set; }
        public int StarCount { get; set; }

        public void SetCount(int watch,int like,int star)
        {
            WatchCount = watch;
            LikeCount = like;
            StarCount = star;
        }
    }
}
